package com.znow.admin.system.security.enums;

import com.znow.common.enums.BaseEnum;

/**
 * 权限类型枚举
 *
 * @author Nemo
 * @date 2022/12/15
 */
public enum PermissionTypeEnums implements BaseEnum {

    /**
     * 目录
     */
    DIRECTORY(0, "目录"),

    /**
     * 菜单
     */
    MENU(1, "菜单"),

    /**
     * 按钮
     */
    BUTTON(2,"按钮");


    PermissionTypeEnums(int code, String name) {
        this.code = code;
        this.name = name;
    }

    private int code;

    private String name;

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getName() {
        return name;
    }
}
